{extend name="public:layout" /}

{block name="title"}
    <title>{:site('siteName')}-申请出售</title>
{/block}

{block name="css"}
    <style>
        .layui-form-label{width:60px;    padding: 9px 6px;}
        .layui-input-block{margin-left:75px;margin-right:10px;}
        .layui-form-item { margin-bottom: 9px;}
        .layui-input::-webkit-input-placeholder{ color: #999;font-size:12px;}
        .layui-input::-moz-placeholder{  color: #999;font-size:12px; }
        .layui-input:-ms-input-placeholder{color: #999;font-size:12px;}
        .layui-tab-title li{width:50%;}
        .layui-tab-content {padding:0;}
        .layui-table td, .layui-table th{padding:5px 2px;}
        .layui-btn{    height: 25px;line-height: 25px;    padding: 0 3px;}
        .sell-tab { height: 40px; border-bottom: 1px solid #e2e2e2 }
        .sell-tab li { width: 50%; float: left; text-align: center; line-height: 40px; }
        .sell-tab .this { color: #009688; border-bottom: 3px solid #5FB878; margin-bottom: -3px;}
    </style>
{/block}

{block name="content"}
    <ul class="sell-tab">
        <li class="this">申请挂售</li>
        <li>
            <a href="/mySell">挂售记录</a>
        </li>
    </ul>
    <div class="layui-tab-content">
        <div class="invite_yaoqing">
            <p>挂售说明：<span class="invite_yaoqing_span"></span></p>
            <blockquote class="layui-elem-quote layui-quote-nm">挂售说明：每次挂售数量不能小于60，并且是60的倍数。</blockquote>
            <p>剩余{$config.money}：<span class="invite_yaoqing_span1">{$U.money}</span></p>
        </div>
        <form class="layui-form" action="{:url('index/sell/sell')}">
            <div class="layui-form-item" style="padding-top: 10px;">
                <label class="layui-form-label">挂售数量</label>
                <div class="layui-input-block">
                    <input type="text" name="money" lay-verify="required|number" class="layui-input" placeholder="请输入{$config.minMoney}的倍数">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">支付密码</label>
                <div class="layui-input-block">
                    <input type="password" name="pwd" lay-verify="required" class="layui-input" placeholder="请输入支付密码">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block">
                    <input type="text" name="note" class="layui-input" placeholder="非必填">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"></label>
                <div class="layui-input-inline">
                    <input type="hidden" name="__token__" value="{$Request.token}" />
                </div>
            </div>
            <div style="margin: 0 10px;">
                <button class="layui-btn layui-btn-main" lay-submit style="width:100%;height: 30px;">确定</button>
            </div>
        </form>
    </div>
{/block}

{block name="script"}
    <script type="text/javascript">
        layui.use(['jquery','form'], function(){
            var $ = layui.jquery;
            var form = layui.form();

        });
    </script>
{/block}